package com.cw.subject.domain.convert;

import com.cw.subject.domain.entity.SubjectLabelBO;
import com.cw.subject.infra.basic.entity.SubjectLabelPO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper
public interface SubjectLabelConverter {
    SubjectLabelConverter INSTANCE = Mappers.getMapper(SubjectLabelConverter.class);

    // 通过SubjectLabelBO转化为SubjectLabelPO
    SubjectLabelPO convertBoToLabelPO(SubjectLabelBO subjectLabelBO);

    List<SubjectLabelBO> convertPOListToLabelBOList(List<SubjectLabelPO> LabelPOList);

}
